import request from '@/utils/http'
import { BaseResponse } from '@/types/api'

// 首页通知公告/使用分页
export function getNoticeList(data: object) {
  return request.get<BaseResponse>({
    url: `ds-notices/page`,
    params: data
  })
}
//pc电脑端设置详情
export function getStoreInfo() {
  return request.get<BaseResponse>({
    url: `ds-store/byId`
  })
}
//首页信息
export function homePageInfo() {
  return request.get<BaseResponse>({
    url: `homePage/homePage`
  })
}
//首页学员班型销量信息
export function homeStudentClass(data: object) {
  return request.get<BaseResponse>({
    url: `homePage/homePageStorePackage`,
    params: data
  })
}
//首页会员卡销量信息
export function homeVIPSales(data: object) {
  return request.get<BaseResponse>({
    url: `homePage/homePageMemberCard`,
    params: data
  })
}